<template>
  <div class="comment-box">
    <div class="comment" v-for="v in arr" :key="v.id">
      <div class="content-all">
        <div class="comment1">
          <img class="img avatar" :src="v.user.avatarUrl | fliterImg" />
        </div>

        <div class="comment2">
          <p>{{ v.user.nick }}</p>
          <p>51分钟前</p>
          <p>{{ v.content }}</p>
        </div>
        <div class="comment3">
          <img
            src="https://s0.meituan.net/bs/myfe/canary/file/asgard/images/preview/more.png"
            alt=""
          />
        </div>
      </div>
      <p class="comment4">
        <i class="iconfont icon-dianzan1"></i><span>赞</span>
      </p>
    </div>
  </div>
</template>

<script>
import getLink from "@/api/getLink.js";

export default {
  data() {
    return {
      arr: [],
    };
  },

  mounted() {
    getLink("/apidl/movie/pj").then((res) => {
      this.arr = res.data;
    });
  },
};
</script>

<style scoped>
.comment-box {
  padding: 0.3rem;
  border-top: 1px solid #e8e8e8;
}
.comment {
  padding-top: 0.2rem;
}
.content-all {
  display: flex;
  justify-content: space-between;
  height: 1.5rem;
}
.comment1 img {
  width: 0.8rem;
  height: 0.8rem;
}
.comment2 {
  width: 3rem;
  margin-left: -2.2rem;
}
.comment3 img {
  width: 0.4rem;
  /* height: .4rem; */
}
.comment4 {
  text-align: right;
  padding: 0.3rem;
  border-bottom: 1px solid #e8e8e8;
}
</style>